package ipt.pru;
import java.util.*;
public class DoWhile{
	public static void main(String args[]){
		long aux;
		long factorial = 1;
		Scanner sc = new Scanner(System.in);
		System.out.println("Introduce un numero entero");
		long numero = sc.nextLong();
		aux=numero;
		do{
			factorial *= aux;
			aux--;
		}while(aux > 0);
		System.out.print("El factorial de: "+numero);
		if(numero > 0 && numero < 25)
			System.out.println(" es: "+factorial);
		else if(numero == 0)
			System.out.print("El factorial es 0");
		else
			System.out.println(" no se puede calcular");
	}
}
